package com.neusoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.entity.BorrowInfo;
import com.neusoft.entity.BorrowInfoExample;
import com.neusoft.mapper.BorrowInfoMapper;
import com.neusoft.service.BorrowInfoService;

@Service
public class BorrowInfoServiceImpl implements BorrowInfoService {

	@Autowired
	BorrowInfoMapper borrowInfoMapper;

	@Override
	@Transactional
	public int removeById(Integer bcId) {
		return borrowInfoMapper.deleteByPrimaryKey(bcId);
	}

	@Override
	public int addSelective(BorrowInfo record) {
		return borrowInfoMapper.insertSelective(record);
	}

	@Override
	public List<BorrowInfo> loadListByExample(BorrowInfoExample example) {
		return borrowInfoMapper.selectByExample(example);
	}

	@Override
	public BorrowInfo loadById(Integer bcId) {
		return borrowInfoMapper.selectByPrimaryKey(bcId);
	}

	@Override
	public int updateByIdSelective(BorrowInfo record) {
		return borrowInfoMapper.updateByPrimaryKeySelective(record);
	}

}
